/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.dkakunsi.ta.client.util;

import edu.dkakunsi.ta.client.entity.Department;
import edu.dkakunsi.ta.client.exception.EntityException_Exception;
import java.net.MalformedURLException;

/**
 *
 * @author dkakunsi
 */
public class Constant {
    public static final String SERVERNAME = "localhost";
    public static final String TARGET_NAMESPACE = "http://dkakunsi-notebook:8080/presensi";
    public static final String PEGAWAI_WSDL = "http://" + SERVERNAME + ":8080/Presensi/PegawaiService/PegawaiWs?wsdl";
    public static final String DEPARTMENT_WSDL = "http://" + SERVERNAME + ":8080/Presensi/DepartmentService/DepartmentWs?wsdl";
    public static final String PRESENSI_WSDL = "http://" + SERVERNAME + ":8080/Presensi/PresensiService/PresensiWs?wsdl";
    public static final String IZIN_WSDL = "http://" + SERVERNAME + ":8080/Presensi/IzinService/IzinWs?wsdl";
    public static final String LEMBUR_WSDL = "http://" + SERVERNAME + ":8080/Presensi/LemburService/LemburWs?wsdl";
    
    public static Department getDepartment() throws EntityException_Exception, MalformedURLException {
        return new ServiceManager().getDepartmentService().get("SKPD02");
    }
}
